import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import '@/font/font.css'
import Chart from 'chart.js/auto'
const app = createApp(App)

app.use(createPinia())
const createChartPlugin = () => {
  return {
    install: (app) => {
      app.config.globalProperties.$chart = Chart
    },
  }
}
app.use(createChartPlugin())
app.use(router)
app.use(ElementPlus)

app.mount('#app')
